package com.myapp.service;

import com.gitee.fastmybatis.core.support.BaseService;
import com.myapp.dao.TUserMapper;
import com.myapp.entity.TUser;
import org.springframework.stereotype.Service;

/**
 * 用户service
 * @author thc
 */
@Service
public class UserService extends BaseService<TUser/*实体类*/, Integer/*主键类型*/, TUserMapper/*Mapper*/> {

}

// 方式2:如果Service已经继承了其它类，可以通过实现接口解决
/*
public class UserService implements IService<TUser, Integer> {

    @Autowired
    private TUserMapper userMapper;

    @Override
    public CrudMapper<TUser, Integer> getMapper() {
        return userMapper;
    }
}
 */